package connect4client.commands;


import messages.AccountCreationSuccessfulMessage;


/**
 * The AccountCreationSuccessful command.
 * 
 * This command will handle AccountCreationSuccessful messages.
 */
public class AccountCreationSuccessfulCommand extends Command {

	public AccountCreationSuccessfulCommand(AccountCreationSuccessfulMessage message){
		super(message);
	}
	
	@Override
	public void execute() {
		AccountCreationSuccessfulMessage message = (AccountCreationSuccessfulMessage) this.message;		
		guiMediator.accountCreationSuccessful(message.getSenderLogin(), message.getLogin());		
	}
}
